package cn.uniqueinfo.dp.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotEmpty;
import java.util.Date;

/**
 * @author:朱元勋
 * @mail:395910063@qq.com
 * @date:2018-12-24 15:25:34
 * @description: 定时任务
 */
@ApiModel(value="ScheduleJobVO",description = "定时任务")
@Data
public class ScheduleJobVO extends BaseVO {

    @ApiModelProperty(value="任务名称",name = "name")
    @NotEmpty(message = "名称不能为空")
    private String name;
    @Length(min = 1,max = 128,message = "beanname不能为空")
    private String beanname;
    @Length(min = 1,max = 128,message = "methodname不能为空")
    private String methodname;
    private String methodparams;
    @Length(min = 1,max = 128,message = "cronexpression不能为空")
    private String cronexpression;
    private Integer status;
    private String remark;
    private Integer adduid;
    private String adduname;
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private Date adddate;
    private Integer edituid;
    private String edituname;
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private Date editdate;
}
